package org.service.provider.one.web;

import javax.validation.Valid;

import org.service.provider.one.vo.QueryParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/valid")
public class ValidTestController {
	@PostMapping("/testValid")
	String testValid(@RequestBody @Valid QueryParam param) {
		return "param is valid!";
	}
}
